﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="ShoppingCart.aspx.cs" Inherits="Design.WebForm11" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style31
        {
            width: 932px;
        }
        .style34
        {
            width: 108px;
            text-align: right;
        }
        .style36
        {
            width: 146px;
            text-align: right;
        }
        .style38
        {
            width: 146px;
        }
        .style39
        {
            width: 133px;
            text-align: left;
        }
        .style40
        {
            width: 108px;
        }
        .style41
        {
            height: 37px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style31">
        <tr>
            <td colspan="4">
                <asp:Label ID="Label1" runat="server" Font-Size="X-Large" ForeColor="#FF6600" 
                    Text="Shopping Cart"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" class="style41">
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="get_cart_items_for_a_user" 
                    TypeName="BusinessLayer.ShoppingCart">
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td class="style39">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    style="text-align: left" Width="512px" onrowdeleted="GridView1_RowDeleted" 
                    onrowdeleting="GridView1_RowDeleting" onrowcommand="GridView1_RowCommand">
                    <Columns>
                        <asp:ImageField DataImageUrlField="image" SortExpression="image" 
                            ControlStyle-Width="40" ControlStyle-Height="40" ><ControlStyle Height="40px" Width="40px"></ControlStyle>
                        </asp:ImageField>
                        <asp:BoundField DataField="equip_name" HeaderText="Product Name" SortExpression="equip_name" />
                        <asp:BoundField DataField="price" HeaderText="Price" SortExpression="price" />
                        <asp:TemplateField HeaderText="Quantity">
                        <ItemTemplate>
                            <asp:DropDownList ID="ddlQty" runat="server" Width="40" AutoPostBack="True">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            </asp:DropDownList>
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click" CommandArgument='<%#Eval("equip_id")%>' CommandName="delete_item" >Delete</asp:LinkButton>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                Subtotal: <asp:Label ID="lblLabel" runat="server"></asp:Label>
            </td>
            <td class="style40">
                
            </td>
            <td class="style38">
                <br />
                <br />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style39">
                &nbsp;</td>
            <td class="style34">
                &nbsp;</td>
            <td class="style36">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style39">
                &nbsp;</td>
            <td class="style34">
                &nbsp;</td>
            <td class="style36">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style39">
                <asp:Button ID="Button1" runat="server" Text="Print As Quotation" 
                    Width="119px" style="text-align: left" />
            </td>
            <td class="style34">
                <asp:Button ID="btnContinue" runat="server" CssClass="style3" 
                    Text="Continue &gt;" Width="95px" />
            </td>
            <td class="style36">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style39">
                &nbsp;</td>
            <td class="style40">
                &nbsp;</td>
            <td class="style38">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
